.dict-container {
  padding: 24px;
  background: #f0f2f5;
  min-height: 100%;

  .dict-type-card,
  .dict-data-card {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);

    .ant-card-head {
      border-bottom: 1px solid #f0f0f0;
      padding: 16px 24px;

      .ant-card-head-title {
        font-size: 16px;
        font-weight: 500;
      }
    }

    .ant-card-body {
      padding: 24px;
    }
  }

  .table-operations {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ant-table {
    .ant-table-thead > tr > th {
      background: #fafafa;
      font-weight: 500;
    }

    .ant-table-tbody > tr:hover > td {
      background: #f5f5f5;
    }

    .ant-table-row {
      .ant-table-cell {
        padding: 12px 8px;
      }
    }
  }

  .ant-tag {
    border-radius: 4px;
    padding: 0 8px;
    height: 24px;
    line-height: 22px;
  }

  .ant-btn-link {
    padding: 4px 8px;
    height: auto;

    &:hover {
      background: transparent;
    }
  }

  .ant-modal {
    .ant-modal-content {
      border-radius: 8px;
    }

    .ant-modal-header {
      border-bottom: 1px solid #f0f0f0;
      padding: 16px 24px;
      border-radius: 8px 8px 0 0;

      .ant-modal-title {
        font-size: 16px;
        font-weight: 500;
      }
    }

    .ant-modal-body {
      padding: 24px;
    }

    .ant-modal-footer {
      border-top: 1px solid #f0f0f0;
      padding: 16px 24px;
      border-radius: 0 0 8px 8px;
    }
  }

  .ant-form-item {
    margin-bottom: 24px;

    &:last-child {
      margin-bottom: 0;
    }

    .ant-form-item-label {
      padding-bottom: 8px;
      font-weight: 500;
    }
  }

  .ant-input,
  .ant-select-selector {
    border-radius: 4px;
  }

  .ant-input-textarea {
    .ant-input {
      border-radius: 4px;
    }
  }
}

// 暗色主题适配
[data-theme='dark'] {
  .dict-container {
    background: #141414;

    .dict-type-card,
    .dict-data-card {
      background: #1f1f1f;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

      .ant-card-head {
        border-bottom-color: #303030;
      }
    }

    .ant-table {
      background: #1f1f1f;

      .ant-table-thead > tr > th {
        background: #262626;
      }

      .ant-table-tbody > tr:hover > td {
        background: #262626;
      }
    }

    .ant-modal {
      .ant-modal-content {
        background: #1f1f1f;
      }

      .ant-modal-header {
        background: #1f1f1f;
        border-bottom-color: #303030;
      }

      .ant-modal-footer {
        background: #1f1f1f;
        border-top-color: #303030;
      }
    }
  }
} 